﻿package mortal.game.scene3D.map3D.sceneInfo
{
    import flash.geom.*;

    public class SceneEffectData extends Object
    {
        public var x:int;
        public var y:int;
        public var effectName:String;
        public var key:String;
        public var r:int = 0;
        public var showDx:int = 0;
        public var showDy:int = 0;
        public var showWidth:int = 0;
        public var showHeight:int = 0;
        public var showRec:Rectangle;
        public var isOverShadowArea:Boolean = false;

        public function SceneEffectData()
        {
            return;
        }// end function

        public function createShowArea() : void
        {
            if (this.showWidth != 0)
            {
                this.showRec = new Rectangle(this.showDx, this.showDy, this.showWidth, this.showHeight);
            }
            return;
        }// end function

        public function get isRandomPlaceType() : Boolean
        {
            return this.r != 0;
        }// end function

        public function get isAccordingShowType() : Boolean
        {
            return this.showWidth != 0;
        }// end function

    }
}
